package com.czh.dao;

import com.czh.pojo.Book;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface BooksMapper {
    int Add(Book book);
    int Delete(@Param("bookID") int bookID);
    int Update(Book book);
    Book SelectById(@Param("bookID") int bookID);
    Book SelectByName(@Param("bookName") String bookName);
    @Select("select * from ssmbuild.books order by bookID")
    List<Book> SelectAll();
}
